package com.njbdqn.ALi.zjg.dao;

import org.njbdqn.ali.database.SqlTemplate;

public class VoteDAO {
	private SqlTemplate template;
	public VoteDAO(){
		template = new SqlTemplate();
	}
	public int modify(int beLeftticket,int userid){
		String sql="update userinfos set beLeftticket=beLeftticket-? where userid=?";
		return template.update(sql, new Object[]{beLeftticket,userid});
	}
}
